//
//  QSFBaseViewController.h
//  QSF_Dev
//
//  Created by Mr.Dynasty on 2018/5/24.
//  Copyright © 2018年 Mr.Dynasty. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIButton+InsetButton.h"


/**
 当前页面推出方式

 - QSFViewAppearType_Default: push
 - QSFViewAppearType_Present: present
 */
typedef NS_ENUM(NSInteger, QSFViewAppearType) {
    QSFViewAppearType_Default = 0,
    QSFViewAppearType_Present,
};

@interface BaseViewController : UIViewController

/**
 左上角按钮（一般为返回）
 */
@property (nonatomic, weak) UIButton *leftBtn;

@property (nonatomic, assign) QSFViewAppearType appearType;

@property (strong, nonatomic) UILabel *noDataLabel;

@property (strong, nonatomic) UIButton *noDataBtn;

// pop action  子类方法可重写
- (void)actionForLeft:(UIButton *)button;

/**
 子类中重写
 */
- (void)actionForRefreshNodata;

@end
